<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var rmb = prompt("请输入金额")
        if (rmb >= 2000) {
            alert("请大家吃西餐")
        } else if (rmb < 2000 & rmb >= 1500) {
            alert("请大家吃快餐")
        }else if(rmb<1500&rmb>=1000) {
            alert("请大家喝饮料")
        }else if(rmb<1000&rmb>=500){
            alert("请大家吃棒棒糖")
        }else{
            alert("记得叫班长把钱带够")
        }
    </script>
</body>

</html>